Silk Mobile

Table of Contents (Homepage)

Java TestNG

To export a code to TestNG, you need to:

  1. Get the test code in Java language.

    images/download/attachments/3310244/image2056.png

    images/download/attachments/3310244/image2057.png
  2. Integrate Silk Mobile and TestNG.

Following is a step-by-step description of how to do it.

  1. Get test code in Java

    1. In Silk Mobile go to the "Code" tab and select TestNG.

    2. The test in the requested code language will show up and you can copy it to clipboard using the “Copy to clipboard” button.

Integration of Silk Mobile with TestNG

Step 1: Create Java project.

Step 2: Integration is achieved via built-in jar files located in your installation directory at ...\clients\java.

Right click on the project. Choose configure build path >> Libraries.

Step 3: Add the following external jars:

  • imageClient.jar

  • ws-commons-util-1.0.2.jar

  • xmlrpc-client-3.1.2.jar

  • xmlrpc-common-3.1.2.jar

Step 4: Add the library TestNG